//
//  YJCNavgationController.m
//  xiangzhe
//
//  Created by lyt on 16/11/8.
//  Copyright © 2016年 com.dazhebao. All rights reserved.
//

#import "YJCNavgationController.h"
#import "UIColor+YJCColor.h"

@interface YJCNavgationController ()

@end

@implementation YJCNavgationController

+ (void)initialize{
    UINavigationBar *navBar = [UINavigationBar appearance];
    
    // #FF3566
    navBar.barTintColor = [UIColor yt_colorWithHexString:@"#FF3566"];
    // 设置导航栏两侧按钮的颜色
    [navBar setTintColor:[UIColor whiteColor]];
    // 设置导航栏标题的字体颜色
    [navBar setTitleTextAttributes:@{
                                    NSForegroundColorAttributeName:
                                        [UIColor whiteColor]
                                    }];
}

- (BOOL)prefersStatusBarHidden{
    
    return YES;
}
- (void)viewDidLoad {
    [super viewDidLoad];
//    self.navigationBar.barTintColor = [UIColor yt_colorWithHexString:@"#FF3566"];
//    // 设置导航栏两侧按钮的颜色
//    [self.navigationBar setTintColor:[UIColor whiteColor]];
//    // 设置导航栏标题的字体颜色
//    [self.navigationBar setTitleTextAttributes:@{
//                                     NSForegroundColorAttributeName:
//                                         [UIColor whiteColor]
//                                     }];
}


@end
